package com.zzq.demo.excel.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @ClassName: StringModel
 * @Description: TODO
 * @Author: zhaoziqian
 * @Date: 2019-06-23 14:17
 * @Version: 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = true)
public class StringModel extends BaseRowModel {

    private Integer id;

    @ExcelProperty(index = 0, value = "名称")
    private String name;
    @ExcelProperty(index = 1, value = "地址")
    private String address;

    public StringModel(Integer id) {
        this.id = id;
        this.name = "名称: " + id;
        this.address = "地址: " + id;
    }

    public StringModel() {
    }
}
